{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block page_title %}搜索结果{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>文章列表</h1>
</div>
<div class="table-responsive">
	<table class="table table-striped">
		<thead>
			<tr>
				<th class="th-left">标题</th>
				<th>发表日期</th>
				<th>评论数</th>
			</tr>
		</thead>
		<tbody>
			{% for blog in blogs %}
			<tr>
				<td class="th-left"><a href="{{ url_for('main.blog', id=blog.id) }}">{{ blog.name[:30] }}</a></td>
				<td>{{ moment(blog.create_at).format('YYYY-MM-DD hh:mm:ss') }}</td>
				<td>{{ blog.comments.count() }}</td>
			</tr>
			{% endfor %}
		</tbody>
	</table>
</div>

{% endblock %}

{% block scripts %}
{{ super() }}
{{ pagedown.include_pagedown() }}
{% endblock %}